package com.fooddiary.model.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
@MappedSuperclass
public class BaseEntity implements Serializable{
	
	private static final long serialVersionUID = -7197911318646403073L;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, precision = 4, scale = 0)
	protected Integer id;
	
	@Column(name = "enabled", unique = false, nullable = false, insertable = true, updatable = true)
	protected Short enabled;
	
	
	public Short getEnabled() {
		return enabled;
	}

	public void setEnabled(Short p_enabled) {
		enabled = p_enabled;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer p_id) {
		id = p_id;
	}
}
